import Vue from 'vue';
import App from './App';
import './uni.promisify.adaptor';
import * as filters from "@/filters/index.js";
import plugins from "@/plugins/index";
import store, { setupStore } from "@/store/index.js";
/** 分享配置 */
import share from "@/mixins/share";
import 'dayjs/locale/zh-cn' // 导入本地化语言
import uView from "uview-ui";


Vue.config.productionTip = false;

/** 全局过滤器 */
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})

/** 全局混入 */
Vue.mixin(share);
/**插件的使用*/
Vue.use(plugins);
Vue.use(uView);

App.mpType = 'app';

const app = new Vue({
    ...App,store
})
setupStore();
app.$mount()
